﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace theguineasyndrome
{
    public class PortalDrop : LiquidDrop
    {
        private Portal.Color portalColor;

        public PortalDrop(Level level, Texture2D texture, Vector2 position, Vector2 speed, Portal.Color portalColor)
            : base(level, texture, position, speed, 0, int.MaxValue)
        {
            this.portalColor = portalColor;

            color = Microsoft.Xna.Framework.Color.White;

            radius = (texture.Width + texture.Height) / 2 / 2 * 0.7f;

            size = new Vector2(texture.Width, texture.Height);

            rectangle.X = (int)position.X;
            rectangle.Y = (int)position.Y;
            rectangle.Width = (int)size.X;
            rectangle.Height = (int)size.Y;
            weight = 0;
        }

        public Portal.Color getPortalColor()
        {
            return portalColor;
        }
    }
}
